﻿Public Class Principal

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Registro_del_Centro_de_VotacionTableAdapter1.InsertarCentroVotacion(TextBox1.Text, TextBox2.Text, TextBox3.Text)
        MsgBox("Se ah guardado correctamente")
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        TextBox1.Text = ""
        TextBox2.Text = ""
        TextBox3.Text = ""
    End Sub

    Private Sub BloquearSistemaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BloquearSistemaToolStripMenuItem.Click
        LoginForm1.Show()
        Me.Close()
    End Sub

    Private Sub CerrarSistemaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CerrarSistemaToolStripMenuItem.Click
        If MsgBox("¿Esta deacuerdo en Cerrar la aplicacion?", MsgBoxStyle.YesNo, "Confirmacion") = MsgBoxResult.Yes Then
            Close()
        End If

    End Sub

    Private Sub TabPage1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPage1.Click

    End Sub

    Private Sub VerTablasToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles VerTablasToolStripMenuItem.Click
        Mantenimiento.Show()
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        UsuariosTableAdapter1.InsertarRegistro(TextBox4.Text, TextBox5.Text, TextBox6.Text)
    End Sub

    Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label5.Click

    End Sub

    Private Sub Principal_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Label5.Text = Registro_del_Centro_de_VotacionTableAdapter1.Contar().ToString & " Centros de votacion almacenados"
    End Sub

    Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

    End Sub

    Private Sub CheckBox29_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

    End Sub

    Private Sub RadioButton62_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton62.CheckedChanged

    End Sub

    Private Sub Frame3_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Frame3.Enter

    End Sub

    Private Sub Check18_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

    End Sub

    Private Sub GroupBox24_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox24.Enter

    End Sub
End Class
